package com.luke.xiaotiaowa.utils;

import com.alibaba.fastjson.JSON;
/**
 * @author xiaotiaowa
 * @create 2023/3/29
 */
public class JsonUtils {

    public static  <T> T parseObject(String text, Class<T> clazz) {
        return JSON.parseObject(text, clazz);
    }

    public static String toJsonString(Object javaObject) {
        return JSON.toJSONString(javaObject);
    }

    public static byte[] toJsonBytes(Object javaObject) {
        return JSON.toJSONBytes(javaObject);
    }
}
